package com.ln.lnzw.activity;

import android.os.Bundle;
import android.text.Html;
import android.widget.ImageView;
import android.widget.TextView;

import com.ln.lnzw.R;
import com.ln.lnzw.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by wuwei on 2018/5/7.
 * 办事详情九大要素中的存文本页面
 */

public class TextViewActivity extends BaseActivity {

    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.name)
    TextView name;
    @BindView(R.id.text)
    TextView text;
   private String tName;
   private String tText;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_text);
        ButterKnife.bind(this);
        tName=getIntent().getStringExtra("name");
        name.setText(tName);
        tText=getIntent().getStringExtra("text");
//        String textStr = "\u3000\u3000"+"本月已成功邀请 <font color=\"#FF0000\">" + 100 + "</font>人"+tText;
//        text.setText(/*"\u3000\u3000"+ */Html.fromHtml(textStr));
        text.setText("\u3000\u3000"+tText);
    }

    @OnClick(R.id.iv_back)
    public void onViewClicked() {
        finish();
    }
}
